//
//  JYShowView.h
//  JYFarm
//
//  Created by 花花 on 2017/10/13.
//  Copyright © 2017年 花花. All rights reserved.
//

#import <UIKit/UIKit.h>

#define showView_Width Screen_Width * 0.8
#define showView_Height 225
typedef NS_ENUM(NSInteger,JYShowType){
    JYShowTypeCancel,//取消
    JYShowTypeDone //确定
};
typedef void(^ShowBtnBolck)(JYShowType type);



@interface JYShowView : UIView

- (instancetype)showText:(NSString *)text isSected:(BOOL)isSected btnHandler:(ShowBtnBolck)hander;

- (instancetype)initWithFrame:(CGRect)frame isSected:(BOOL)isSected alertMessage:(NSString *)msg btnHandler:(ShowBtnBolck)hander;

//弹出
-(void)show;

//隐藏
-(void)hide;

@end

@interface JYNoGoodsShowView : JYShowView
typedef void(^ButtonOnClickHandler)();

- (instancetype)initWithFrame:(CGRect)frame alertMessage:(NSString *)msg onClickHandler:(ButtonOnClickHandler)onClickHandler;

- (instancetype)showText:(NSString *)text  onClickHandler:(ButtonOnClickHandler)onClickHandler;


@end

